<?

// $Id: 

import("izz.service.RetrieveService");
import('iforum.web.iForumWebAppContext');

class forumnavService extends RetrieveService
{

	function execute()
	{
		$context = Singleton::instance('iForumWebAppContext');
		$request = &$context->getRequest();
		$forumid = &$request->getParameter('fid');		

		$daofactory = $context->getDaoFactory();
		$dao = $daofactory->getForumDAO();
		$forum = $dao->getForum($forumid);
		
		$x = explode(':', $forum['fRoueID']);
		$count  =count($x);

		$nav = array();
		for ($i=1; $i<$count; $i++)
		{
			$f = $dao->getForum($x[$i]);
			$nav[] = array(forumid=>$f['fID'],forumtitle=>$f['fTitle']); 
		}

		$this->_result = $nav;
		return true;
	}
	
	function get()
	{
	}
}

?>